package masterjava.soa.smsgate;

import masterjava.common.exception.FaultInfo;
import masterjava.common.type.FaultInfoType;

/**
 * User: GKislin
 * Date: 14.01.2011
 */

public enum SmsGateExceptionType implements FaultInfo {

    CONNECTION_ERROR("Connection Error"),
    SMS_GATE_ERROR("SmsGate Error");

    private String message;

    SmsGateExceptionType(String message) {
        this.message = message;
    }

    public FaultInfoType getFaultInfo() {
        return new FaultInfoType(name());
    }

    public String getMessage() {
        return message;
    }
}
